<!DOCTYPE html>
<html lang="en">
<head>
<#include "/common/head.ftl"/>
<script type="text/javascript">
	$(function() {

	});

	function submitForm() {

		$("#form1").submit();

	}
	function submitForm2() {

		$("#form2").submit();

	}
</script>
</head>
<body oncontextmenu="return false" onselectstart="return false"
	ondragstart="return false" onbeforecopy="return false"
	oncopy="document.selection.empty()"
	onselect="document.selection.empty()">

	<div class="inside_bg">
		<div class="inside">

			<h1>
				当前位置：<a href="${path}/home/index">学而阅读</a> &gt; <a
					href="${path}/book/bookInfo?bookId=${((chapter.bookId)!'0')?c}">${(chapter.bookName)!''}</a>
				&gt; <a
					href="${path}/book/chapterList?bookId=${((chapter.bookId)!'0')?c}">章节目录</a>
				&gt; ${(chapter.chapterName)!''}
			</h1>
			<h2>
				<span> </span> <b>${(chapter.chapterName)!''}</b>
			</h2>
			<h3>
				书名：<a>${(chapter.bookName)!''}</a> 作者：<a class="blue">${(book.bookAuthor)!''}</a>
				更新时间：${(book.bookLatestDate?string("yyyy-MM-dd
				HH:mm"))!''}字数：${(book.bookWords)!'0'}
			</h3>

			<p>${(chapter.chapterContent)!''}...</p>


			<div class="sb-book">
				<div class="sb-book-price f48 tc"><#if
					book.bookFree==2>本章价格：${(chapter.chapterAmount*100)}书币（${chapter.chapterAmount?string("#.##")}元）
					<#elseif
					book.bookFree==3>本章价格（半价活动）：${(chapter.chapterAmount*100*0.5)?round}书币（${(chapter.chapterAmount*0.5)?string("#.##")}元）
					<#elseif
					book.bookFree==4>全本特价：${(book.bookAmount)}书币（${(book.bookAmount/100)?string("#.##")}元）
					</#if></div>
				<form id="form1" name="form1" method="post"
					action="${path}/user/payChapterConfirm">
					<input type="hidden" name="bookId"
						value="${((chapter.bookId)!0)?c}"> <input type="hidden"
						name="bookAuthorId" value="${((chapter.bookAuthorId)!0)?c}">
					<input type="hidden" name="chapterId"
						value="${((chapter.chapterId)!0)?c}">
				</form>
				<form id="form2" name="form2" method="post"
					action="${path}/user/payAuto">
					<input type="hidden" name="bookId"
						value="${((chapter.bookId)!0)?c}"> <input type="hidden"
						name="bookAuthorId" value="${((chapter.bookAuthorId)!0)?c}">
					<input type="hidden" name="chapterId"
						value="${((chapter.chapterId)!0)?c}"> <input type="hidden"
						name="fromType" value="1">
				</form>
				<a class="sb-book-btn f42 tc cfff" href="#" onclick="submitForm();"><#if
					book.bookFree==2>订阅该章节<#elseif book.bookFree==3>订阅该章节<#elseif
					book.bookFree==4>购买特价全本</#if></a> <#if isPayAuto ==false> <a
					class="sb-book-btn f42 tc cfff" href="#" onclick="submitForm2();">自动订阅剩余章节</a>
				</#if>
			</div>
		</div>
	</div>
	<#include "/common/footer.ftl"/>
</body>
</html>